package com.chen.dome11inputStreamReader;

import java.io.*;

public class InputStreamReaderdome1 {
    public static void main(String[] args) {

        try(InputStream is = new FileInputStream("D:\\学生成绩管理系统\\javaprojectmax\\d2_file-io\\src\\text.txt");
            InputStreamReader isr = new InputStreamReader(is,"GBK");
            BufferedReader br = new BufferedReader(isr);
        ){
            String line;
            while ((line = br.readLine()) != null) {
                System.out.println(line);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
